//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_selfHeal.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);

private ["_status"];
_status	= player getVariable ["BTC_r_status",[]];
TRACE_1("Status",_status);

// TODO: Extend to take into account the advanced status of the BTC Revive to see if we can self heal

if (alive player) then {
	_status set [0,0];
	_status set [1,0];
	_status set [2,0];
	_status set [3,(_status select 3)];
	_status set [4,(_status select 4)];
	player setVariable ["BTC_r_status",_status, true];
	player playMove "AinvPknlMstpSnonWnonDnon_medic";
	sleep 5;
	player setBleedingRemaining 0;
	player setDamage 0;
};